const {
  addShopping,
  getShopping,
  delShopping,
  putShopping,
} = require('../../controllers')

const { verifyToken } = require('../../utils/jwt.js')

const shoppingRoutes = (fastify, options, done) => {
  fastify.post('/wechat/shopping/car', addShopping)
  done()
  fastify.get('/wechat/shopping/car', getShopping)
  done()
  fastify.delete('/wechat/shopping/car', delShopping)
  done()
  fastify.put('/wechat/shopping/car', putShopping)
  done()
}

module.exports = shoppingRoutes
